home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmTest
- Caption = "Test Network"
- ClientHeight = 3144
- ClientLeft = 9120
- ClientTop = 3288
- ClientWidth = 2172
- LinkTopic = "Form1"
- MaxButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 3144
- ScaleWidth = 2172
- Begin VB.TextBox txtYInput
- Height = 285
- Left = 840
- TabIndex = 3
- Text = "0.0"
- Top = 960
- Width = 855
- End
- Begin VB.TextBox txtXInput
- Height = 285
- Left = 840
- TabIndex = 0
- Text = "0.0"
- Top = 480
- Width = 855
- End
- Begin VB.TextBox txtOutput
- Height = 285
- Left = 720
- TabIndex = 2
- Top = 2400
- Width = 855
- End
- Begin VB.CommandButton cmdTest
- Caption = "Test"
- Height = 375
- Left = 240
- TabIndex = 1
- Top = 1560
- Width = 1695
- End
- Begin VB.Frame Frame1
- Caption = "Input"
- Height = 1335
- Left = 240
- TabIndex = 4
- Top = 120
- Width = 1695
- Begin VB.Label lblY
- Caption = "Y"
- Height = 255
- Left = 240
- TabIndex = 6
- Top = 840
- Width = 375
- End
- Begin VB.Label lblX
- Caption = "X"
- Height = 255
- Left = 240
- TabIndex = 5
- Top = 360
- Width = 255
- End
- End
- Begin VB.Frame Frame2
- Caption = "Output"
- Height = 855
- Left = 240
- TabIndex = 7
- Top = 2040
- Width = 1695
- End
- Attribute VB_Name = "frmTest"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdTest_Click()
- Dim NSApp As Object
- Dim NSBB As Object
- Dim outputArray As Variant
- Dim finalOutput As Single
- Dim inputArray(0 To 1, 0 To 0) As Variant
- Dim inputArray2 As Variant
-
- Set NSApp = CreateObject("NeuroSolutions.Application")
- Set NSBB = NSApp.activeBreadboard
- inputArray(0, 0) = CSng(txtXInput.Text)
- inputArray(1, 0) = CSng(txtYInput.Text)
- inputArray2 = inputArray
- NSBB.sendDataToEngine inputArray2, "oLEInput"
- NSBB.send "control.resetNetwork()"
- NSBB.send "control.runNetwork()"
- outputArray = NSBB.send("trainingCostProbe.getProbeData()")
- finalOutput = outputArray(0, 0)
- txtOutput.Text = Format(finalOutput, "0.00000")
- End Sub
- Private Sub Label1_Click()
- End Sub
- Private Sub lblOutput_Click()
- End Sub
-